#ifndef MAQGRAPHICSVEIW_H
#define MAQGRAPHICSVIEW_H

#include <QGraphicsView>
#include <QMouseEvent>
#include "maqgraphicsscene.h"

class FenetreImage;
class MaQGraphicsView : public QGraphicsView
{
        Q_OBJECT

public:
    explicit MaQGraphicsView(QWidget *frame);
    void setMaScene(MaQGraphicsScene *scene);
    ~MaQGraphicsView();

private:
    void mousePressEvent(QMouseEvent *event);
    void mouseMoveEvent(QMouseEvent *event);
    void mouseReleaseEvent(QMouseEvent *event);

    FenetreImage *fenetreImage;
signals:

    void mousePressPosChanged(QPoint);
    void mouseMovePosChanged(QPoint);
    void mouseReleasePosChanged(QPoint);

public slots:
    void onSceneRectChanged(QRectF rect);
};

#endif // MAQGRAPHICSVIEW_H
